<div class="container">


    <h2> View all thumbnails size </h2>


    <div class="updated below-h2" id="message" <? if (isset($_GET['m'])) echo 'style="display:block; width: 98%;float: none; margin:0; margin-bottom:13px"'; ?>>

        <p>
            <? if (isset($_GET['m'])) echo 'All Thumbnails successfuly created.' ?>
        </p>

    </div>

    <div class="demo_jui">

        <table class="table table-striped table-bordered table-condensed">
            <thead>
                <tr>
                    <th>Thumnail Size</th>
                    <th>Description</th>
                    <th class="th-action center">Action</th>
                </tr>
            </thead>
            <tbody>

                <?
                    $k = 0;
                    foreach ($all_posts as $post):
                        ?> 

                        <tr <? if ($k % 2 == 0) echo 'class="tr-odd"'; ?>>

                            <? $dimension = unserialize($post['user_data']); ?>

                            <td><strong><?= $dimension['w'] . ' x ' . $dimension['h'] ?></strong></td>
                            <td><?= $post['description'] ?></td>
                            <td class="center last">
                                <a href="<?= base_url() ?>cmssettings/view_edit_thimbnail_size?post_type=thumbnails&post_ID=<?= $post['ID'] ?>"><i class="icon-pencil"></i> Edit</a> |
                                <a href="<?= base_url() ?>cmssettings/delete_thumbnail?post_type=thumbnails&post_ID=<?= $post['ID'] ?>" class="delete_post"><i class="icon-trash"></i> Delete</a>
                            </td> 

                        </tr>                                      

                        <?
                        $k++;
                    endforeach;
                ?>

            </tbody>
        </table>

        <div class="spacer"></div>
        <div id="publishing-action">
            <div class="all_thumbnails_again">
                <a href="<?= base_url() ?>cmssettings/create_thumbnails_again" title="Create All Thubmnail To New Sizes" class="button-primary btn">Create All Thubmnail To New Sizes</a>
                <div class="description" style="visibility: hidden;">Please be patient.<br> This may take a few moments.</div>
            </div>
        </div>

    </div>

    <div class="spacer"></div>


    <!--</div>--> 
    
</div>